<html><head><title>CopyMap</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CopyMap()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>CopyMap</b></font>(SourceMap(), DestinationMap())</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Copy every element of the source to the destination map. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>SourceMap()</i></td>
<td width="90%"> 
The map to copy from. 

</td></tr>
<tr><td><i>DestinationMap()</i></td>
<td> 
The map to copy to. The existing elements in this map will be freed. 
After a successful copy, the two maps are identical. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero on success and zero on failure. If the two maps do not have the 
same type then the copy will fail. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">NewMap</font></b> <font color="#3A3966">Age</font>()
  <b><font color="#3A3966">NewMap</font></b> <font color="#3A3966">AgeCopy</font>()
  
<font color="#3A3966">  Age</font>(&quot;John&quot;)  = 15
<font color="#3A3966">  Age</font>(&quot;Elise&quot;) = 30
  
<font color="#3A3966">  CopyMap</font>(<font color="#3A3966">Age</font>(),<font color="#3A3966"> AgeCopy</font>())
  
  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">AgeCopy</font>(&quot;John&quot;)
  <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">AgeCopy</font>(&quot;Elise&quot;)
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="../array/copyarray.html">CopyArray()</a>, <a href="../list/copylist.html">CopyList()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=clearmap.html>ClearMap()</a> - <a href="index.html">Map Index</a> - <a href="deletemapelement.html">DeleteMapElement()</a> -><br><br>

</body></html>